# An example game using the bgl.
from bgl.core import Table, Region, Piece, Container, Tag, Actor, Action

# Define the components.
table = Table(name="Rock Paper Scissors")

p1 = Tag('p1', 1)
p2 = Tag('p2', 2)

rock_tag = Tag('rock', 1)
paper_tag = Tag('paper', 2)
scissor_tag = Tag('scissor', 3)


hands = [
    Region(parent=table, tags={'p1':True}),
    Region(parent=table, tags={'p2':True}), ]

pieces = []
for i in range(2):
    for type in ['rock', 'paper', 'scissor']:
        pieces[i].append(Piece(region=hands[i] tags={type:True}))
